package net.fltx.p2p.client;

import com.alibaba.fastjson.annotation.JSONField;
import net.fltx.p2p.common.P2PClientInfo;

import java.nio.channels.SocketChannel;

/**
 * @author fltx.net
 * @Date 2021/2/21 23:25
 * @Version 1.0
 */
public class FromP2PClient extends P2PClientInfo {

    @JSONField(serialize = false)
    protected SocketChannel socketChannel;

    public FromP2PClient() {
    }
    public FromP2PClient(SocketChannel socketChannel) {
        this.socketChannel = socketChannel;
    }

    public SocketChannel getSocketChannel() {
        return socketChannel;
    }

    public void setSocketChannel(SocketChannel socketChannel) {
        this.socketChannel = socketChannel;
    }
}
